package sbeam.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sbeam.mapper.InformationMapper;
import sbeam.model.Information;
import sbeam.service.InformationService;
@Service
public class InformationServiceImpl implements InformationService {
	
	@Autowired
	private InformationMapper dao;
	
	@Override
	public void addInformation(Information inf) {
		this.dao.addInformation(inf);
	}

	@Override
	public List<Information> findAllInf() {
		return this.dao.findAllInf();
	}

	@Override
	public Information findInfById(Integer uid) {
		return this.dao.findInfById(uid);
	}

	@Override
	public void updateStatus(Integer uid) {
		this.dao.updateStatus(uid);
		
	}

}
